package pong;

import processing.core.PApplet;

public abstract class MovableGameComponent implements Drawable {

	protected Vector2 position;
	protected PApplet applet;

	public MovableGameComponent(Vector2 position) {
		super();
		this.position = position;
	}

	public Vector2 getPosition() {
		return position;
	}

	public void setPosition(final Vector2 position) {
		this.position = position;
	}

	public void move(final float deltaX, final float deltaY) {
		this.position.move(deltaX, deltaY);
	}

}
